<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.shxt.model.*"%>
<%
	String username = (String) session.getAttribute("");
	String userid = (String) session.getAttribute("");
	CreateNetdisk cn = new CreateNetdisk();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Insert title here</title>
<link href="CSS/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="netdisk/st1.netdisk/js/netdisk.js"
	charset="utf-8"></script>
<script type="text/javascript">
	var pp;
	function readFile(fileBrowser) {
		if (navigator.userAgent.indexOf("MSIE") != -1) {
			alert(document.getElementById("filePath").value);
		} else if (navigator.userAgent.indexOf("Firefox") != -1
				|| navigator.userAgent.indexOf("Mozilla") != -1){
			pp=readFileFirefox(fileBrowser);
			}
		else
			alert("Not IE or Firefox (userAgent=" + navigator.userAgent + ")");
	}

	function readFileFirefox(fileBrowser) {
		try {
			netscape.security.PrivilegeManager
					.enablePrivilege("UniversalXPConnect");
		} catch (e) {
			alert('Unable to access local files due to browser security settings. To overcome this, follow these steps: (1) Enter "about:config" in the URL field; (2) Right click and select New->Boolean; (3) Enter "signed.applets.codebase_principal_support" (without the quotes) as a new preference name; (4) Click OK and try loading the file again.');
			return;
		}
		var fileName = fileBrowser.value;
		var file = Components.classes["@mozilla.org/file/local;1"]
				.createInstance(Components.interfaces.nsILocalFile);
		try {
			var temp = ///g;
			file.initWithPath(fileName.replace(temp, "//"));
		} catch (e) {
			if (e.result != Components.results.NS_ERROR_FILE_UNRECOGNIZED_PATH)
				throw e;
			alert("File '"
					+ fileName
					+ "' cannot be loaded: relative paths are not allowed. Please provide an absolute path to this file.");
			return;
		}
		if (file.exists() == false) {
			alert("File '" + fileName + "' not found.");
			return;
		}
		return file.path;
	}
	function submitForm(userid, folderid) {
		alert(userid+"=--=-=-=-="+pp);
		filePath(userid, folderid, pp);
	}
</script>
</head>
<body>
	<div id="warp">
		<div id="header">
			<div id="headed">
				<h1></h1>
				<ul class="ul1">
					<li><a href="#">首页</a></li>
					<li><a href="#">网盘</a></li>
					<li><a href="#">外链</a></li>
				</ul>
				<input type="text" value="" class="input1" onBlur="test()" /> <input
					type="button" value="" class="input2" /> <span id="userid">用户名</span>
				<ul class="ul2">
					<li><a href="#">消息</a></li>
					<li><a href="#">设置<img src="images/img/icon1.gif"
							alt="icon" title="" /></a></li>
					<li><a href="#">邀请</a></li>
					<li><a href="#">换肤<img src="images/img/icon2.gif"
							alt="icon" title="" /></a></li>
					<li><a href="#">退出</a></li>
				</ul>
			</div>
		</div>
		<div id="content">
			<div id="con">
				<div id="meun">
					<img src="images/img/left_top.gif" alt="icon" title="" />
					<div class="meun_con" id="">
						<h2>
							<img src="images/img/icon3.gif" alt="icon" title="" />我的网盘
						</h2>
						<ul>
							<li><img src="images/img/icon4.gif" alt="" title="" /><a
								href="javascript:getDisk(123,505)">我的文件</a></li>
							<li><img src="images/img/icon5.gif" alt="" title="" /><a
								href="#" onClick="test()">我收到的文件</a></li>
							<li><img src="images/img/icon6.gif" alt="" title="" /><a
								href="javascript:test()">照片</a></li>
							<li><img src="images/img/icon6.gif" alt="" title="" /><a
								href="#" onClick="tett()">文档</a></li>
							<li><img src="images/img/icon6.gif" alt="" title="" /><a
								href="#">软件</a></li>
						</ul>
					</div>
					<div class="xian">
						<img src="images/img/xian.gif" alt="" title="" />
					</div>
					<div class="laji">
						<img src="images/img/icon7.gif" alt="" title="" /><a href="#">回收站</a>
					</div>
					<img src="images/img/left_bot.gif" alt="icon" title="" />
				</div>
				<div class="right">
					<div class="right_left">
						<div class="right_top">我的网盘</div>
						<div class="right_top2">
							<a href="#"><img src="images/img/icon8.gif" alt="icon"
								title="icon" class="img4" /></a>
						</div>
						<div class="tab_div">
							<table width="735" border="0" cellpadding="0" cellspacing="0"
								class="table1">
								<tr>
									<td width="386" height="27" align="left" valign="top"
										background="images/img/right_bg3.gif"><img
										src="images/img/icon10.gif" alt="icon" title="icon"
										class="img5" /></td>
									<td width="106" align="left" valign="top"
										background="images/img/right_bg3.gif"></td>
									<td width="104" align="left" valign="top"
										background="images/img/right_bg3.gif"></td>
									<td width="139" align="left" valign="top"
										background="images/img/td_bg.gif">&nbsp;</td>
								</tr>
							</table>
							<form action="Upload" method="POST" enctype="multipart/form-data">
								<table width="735" border="0" cellpadding="0" cellspacing="0"
									id="message" class="table1">
									<tr>
										<td>选择文件:</td>
										<td><input type="file" name="asd" id="asd"
											onchange="readFile(this)" /></td>
										<td><input type="button" value="确认" onclick="submitForm(123,321)" /></td>
										<td><input type="text" name="ccc" /></td>
									</tr>
								</table>
							</form>
						</div>
						<div class="right_bot"></div>
					</div>
					<div class="right_right"></div>
				</div>
			</div>
		</div>
		<div class="footer">
			windows版 windows版 windows版 苏ICP备34239482号 Coryright 2009-2012
			huaiwiewewsdfsdfsdfsdf &nbsp; <a href="#">网盘介绍 </a>|<a href="#">
				帮助介绍 </a>|<a href="#">论坛 </a>|<a href="#"> 帮助中心</a>
		</div>
	</div>
</body>
</html>